package com.yy.wga.merchant.service.controller;

import com.yy.wga.common.core.dto.Result;
import com.yy.wga.merchant.feign.api.MerchantMomentShareFeign;
import com.yy.wga.merchant.feign.request.MerchantMomentShareGetReq;
import com.yy.wga.merchant.feign.response.MerchantMomentShareGetResp;
import com.yy.wga.merchant.service.service.MerchantMomentShareService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * 发圈素材
 *
 * @author guochao
 * @since 2024-10-31 22:12:53
 */
@Component
public class MerchantMomentShareController implements MerchantMomentShareFeign {
    @Resource
    private MerchantMomentShareService merchantMomentShareService;

    @Override
    public Result<List<MerchantMomentShareGetResp>> get(@Validated @RequestBody MerchantMomentShareGetReq request) {
        return Result.success(merchantMomentShareService.get(request));
    }
}
